from typing import List


def heightChecker(self, heights: List[int]) -> int:
    new_heights = sorted(heights)
    return sum([1 if heights[i] != new_heights[i] else 0 for i in range(len(heights))])
